package hns;

/**
 * Add new functionality by making a new class, implementing this interface.
 * Call Bot.addService("CommandName",this) in your constructor to add it to the
 * bot.
 * 
 * @author c03
 * 
 */
public interface Service {
	/**
	 * The command that your service should react upon.
	 * 
	 * @return
	 */
	String getCommandName();

	/**
	 * Is called whenever your command name is mentioned in a channel.
	 * 
	 * @param strings
	 *            Will contain a whitespace split list of inputs to your
	 *            service.
	 */
	void onMessage(String channel, String sender, String login,String hostname, String message);

	/**
	 * Is called whenever someone joins a channel which has your service active.
	 * 
	 * @param channel
	 * @param sender
	 * @param login
	 * @param hostname
	 */
	void onJoin(String channel, String sender, String login, String hostname);
}
